home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
ply15dat.zip
/
SUPERQ.PI
< prev
next >
Wrap
Text File
|
1992-09-20
|
630b
|
27 lines
// Sample transcendental surface. This is a basic superquadric shape (a pinchy)
// There seems to be a problem with the shading, and there are severe holes
// at the edges.
// Polyray input file - Alexander Enzmann
// Set up the camera
viewpoint {
from <0, 5, -5>
at <0,0,0>
up <0,1,0>
angle 30
resolution 160, 160
}
// Set up background color & lights
background SkyBlue
light <10,10,-10>
include "..\colors.inc"
// Define a superquadric surface
object {
function |x|^0.75 + |y|^0.74 + |z|^0.75 - 1
shiny_red
bounding_box <-1, -1, -1>, <1, 1, 1>
rotate <0, 30, 0>
}